package com.example.demo.dao;

import com.example.demo.entity.SceneryOrder;
import org.apache.ibatis.annotations.*;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface SceneryOrderDao {

    //查询所有订单
    public List<SceneryOrder> getAll();
    public int add(SceneryOrder sceneryOrder) ;

    //根据用户id和景点id查找订单表
    public SceneryOrder find(Integer userId, Integer sceneryId, String time);
    //根据用户ID查询当前用户的购物车列表
    public List<SceneryOrder> getOrderByUserId(int userId) ;


    public int delete(int id) ;




    public int update(SceneryOrder sceneryOrder);
}
